<!DOCTYPE html>
<html lang="en">
        <head>
                <meta charset="UTF-8">
                <title>Title</title>
        </head>
        <body>
                <div th:replace="common/top"></div>

                <div id="Content">
                        <h2>My Orders</h2>

                        <table>
                                <tr>
                                        <th>Order ID</th>
                                        <th>Date</th>
                                        <th>Total Price</th>
                                </tr>


                                <tr th:each="order:${orderList}">

                                        <td>
                                                <a th:text="${order.orderId}"
                                                   th:href="@{/order(orderId=${order.orderId})}">
                                                        order.orderId </a>
                                        </td>

                                        <td th:text="${order.orderDate}"
                                            pattern="yyyy/MM/dd hh:mm:ss">date
                                        </td>
                                        <td th:text="${order.totalPrice}"
                                            pattern="$#,##0.00">price
                                        </td>
                                </tr>

                        </table>
                </div>

                <div th:replace="common/bottom"></div>

        </body>
</html>